﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="With.aspx.cs" Inherits="Views_With" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h3>With</h3>
<span>The with binding creates a new binding context, so that descendant elements are bound in the context of a specified object.</span>
<div>
<div class="code">
<xmp>

</xmp>
</div>
<h4>Result</h4>
<div>
<span data-bind="foreach: location"></span>
<p data-bind="with: coords">
    Latitude: <span data-bind="text: lat"> </span>,
    Longitude: <span data-bind="text: long"> </span>
</p>
</div>
</div>
</asp:Content>

